test:
	g++ -o ./src/Bisection_test ./src/Bisection_test.cpp
	g++ -o ./src/Newton_test ./src/Newton_test.cpp
	g++ -o ./src/Secant_test ./src/Secant_test.cpp
	g++ -o ./src/trough_problem ./src/trough_problem.cpp
	g++ -o ./src/vehicle_problem ./src/vehicle_problem.cpp

run:
	echo "(B)" >> ./src/output.txt
	./src/./Bisection_test >> ./src/output.txt
	echo "" >> ./src/output.txt
	echo "(C)" >> ./src/output.txt
	./src/./Newton_test >> ./src/output.txt
	echo "" >> ./src/output.txt
	echo "(D)" >> ./src/output.txt
	./src/./Secant_test >> ./src/output.txt
	echo "" >> ./src/output.txt
	echo "(E)" >> ./src/output.txt
	./src/./trough_problem >> ./src/output.txt
	echo "" >> ./src/output.txt
	echo "(F)" >> ./src/output.txt
	./src/./vehicle_problem >> ./src/output.txt

clean:
	rm ./src/Bisection_test
	rm ./src/Newton_test
	rm ./src/Secant_test
	rm ./src/trough_problem
	rm ./src/vehicle_problem

report:
	xelatex report.tex
	rm report.log
	rm report.aux
